package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MentorMapper;
import com.ruoyi.system.domain.Mentor;
import com.ruoyi.system.service.IMentorService;

/**
 * 创客导师Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
@Service
public class MentorServiceImpl implements IMentorService 
{
    @Autowired
    private MentorMapper mentorMapper;

    /**
     * 查询创客导师
     * 
     * @param mentorId 创客导师主键
     * @return 创客导师
     */
    @Override
    public Mentor selectMentorByMentorId(String mentorId)
    {
        return mentorMapper.selectMentorByMentorId(mentorId);
    }

    /**
     * 查询创客导师列表
     * 
     * @param mentor 创客导师
     * @return 创客导师
     */
    @Override
    public List<Mentor> selectMentorList(Mentor mentor)
    {
        return mentorMapper.selectMentorList(mentor);
    }

    /**
     * 新增创客导师
     * 
     * @param mentor 创客导师
     * @return 结果
     */
    @Override
    public int insertMentor(Mentor mentor)
    {
        return mentorMapper.insertMentor(mentor);
    }

    /**
     * 修改创客导师
     * 
     * @param mentor 创客导师
     * @return 结果
     */
    @Override
    public int updateMentor(Mentor mentor)
    {
        return mentorMapper.updateMentor(mentor);
    }

    /**
     * 批量删除创客导师
     * 
     * @param mentorIds 需要删除的创客导师主键
     * @return 结果
     */
    @Override
    public int deleteMentorByMentorIds(String[] mentorIds)
    {
        return mentorMapper.deleteMentorByMentorIds(mentorIds);
    }

    /**
     * 删除创客导师信息
     * 
     * @param mentorId 创客导师主键
     * @return 结果
     */
    @Override
    public int deleteMentorByMentorId(String mentorId)
    {
        return mentorMapper.deleteMentorByMentorId(mentorId);
    }
}
